package com.zcsy.commons.constants;

import com.zcsy.commons.util.Globals;

/**
 * 配送客户端中的常量类
 * @Description: 
 * @author: zt
 * @date: 2016年6月17日
 * @version： v1.0 Copyright (c) 2014 Wuhan Hongyi Infomation Co., Ltd.
 */
public class DistributionConstants {
	
	 /**
     * 分页大小
     */
    public static final int PAGE_SIZE  = 10; //每页大小
    public static final int PAGE_NO    = 1; //默认首页 
    
    /** 配送报表ip */
	public static final String IP_DIS_REPORTS_EXCEL = Globals.getConfig("DISTRIBUTION_URL");

	//配送接口中的订单状态
	public static final int DIS_ORDER_STATE_ALL 			   = 0; //全部
	public static final int DIS_ORDER_STATE_WAIT_FOR_SENDER  = 1; //待指派
	public static final int DIS_ORDER_STATE_WAIT_FOR_SENDING = 2; //待发货
	public static final int DIS_ORDER_STATE_SENDING          = 3; //配送中
	public static final int DIS_ORDER_STATE_DONE             = 4; //已完成
	public static final int DIS_ORDER_STATE_WAIT_FOR_DEAL    = 5; //待处理订单，包含待指派、待发货、配送中订单
	
	/** 订单模块 */
	public static final int SUCCESS_LOGIN = 0;  //提示成功,返回绘制的表格HTML语句
	public static final int NOT_DISTRIBUTING = -2;   //用户在其他设备上登录
	public static final int OTHER_DEVICES_LOGIN = -4;   //用户在其他设备上登录
	public static final int INVALID_LOGIN = -5;    //用户授权失效请重新登录
	
	public static final int WAIT_PAY = 0;  //代付款
	public static final int WAIT_CONFIRM = 1;   //待确认
	public static final int WAIT_DELIVER = 2;    //待发货
	public static final int IS_DISTRIBUTING = 3;  //配送中
	public static final int IS_COMPLETED = 4;   //已完成
	public static final int IS_CANCELD = 5;    //已取消
	public static final int APPLY_RETURN_MONEY = 6;  //退款申请
	public static final int CONFIRM_RETURN_MONEY = 7;   //退款已确认
	public static final int COMPLETE_RETURN_MONEY = 8;    //退款已完成
	public static final int REFUSE_RETURN_MONEY = 9;    //退款已拒绝
	public static final int APPLY_RETURN_GOODS = 10;  //退货申请
	public static final int CONFIRM_RETURN_GOODS = 11;   //退货已确认
	public static final int COMPLETE_RETURN_GOODS = 12;  //退货已完成
	public static final int REFUSE_RETURN_GOODS = 13;   //退货已拒绝
	public static final int DISTRIBUTION_ARRIVE = 14;   //配送已到达
	
	public static final int NO_RECORD = -1;   //无记录
	public static final int ORDER_TAKEN = -6;  //订单已被抢
	public static final int ORDER_ASSIGN = -7;  //订单已指派
	public static final int MORE_THAN_THIRTY = -1;  //搜索超过30天
	public static final int NO_BEGIN_TIME = -1;  //没有输入开始时间
	public static final int NO_END_TIME = -1;  //没有输入结束时间
	public static final int CHECK_ORDER_SUCCESS = 0;  //查询报表成功
	
	public static final int HOME_WAIT_SENDER	= 1; //待抢订单
	public static final int HOME_TODAY_ALL 		= 2; //今日总单
	public static final int HOME_TODAY_DIS      = 3; //今日已配送
	public static final int HOME_WEEK_DIS       = 4; //本周已配送
	
    /**
     * 配送类型(在menu表里根据id区分)
     */
    public static final String DISTRIBUTION_ONE = "4001"; //抢单
    public static final String DISTRIBUTION_TWO = "4002"; //派单
    public static final String DISTRIBUTION_THERE = "4003"; //报表
    
    /**
     * 订单状态
     */
    public static final int ORDER_STATE_WAIT_FOR_SENDING = 2; //待发货订单
    public static final int ORDER_STATE_SENDING = 3; //配送中订单
    public static final int ORDER_STATE_DONE = 4; //已完成订单
    
    /**
     * 登录状态
     */
	public static final int USER_NOT_EXIST = -2; // 账号不存在
	public static final int LOGIN_SUCCESS = 0; //登录成功
	public static final int PASSWORD_FALSE = -1; //密码错误
	public static final int MODIFY_INFO_SUCCESS = 0; //修改个人信息成功
	
	/**
	 * 修改密码
	 */
	public static final int MODIFY_PASSWORD_SUCCESS = 0;  //修改密码成功
	public static final int OLD_PASSWORD_FALSE = -2; //旧密码输入错误
	public static final int NEW_PASSWORD_NOT_EMPTY = -3;  //新密码输入不能为空
	
	/**
	 * 查看个人信息
	 */
	public static final int Look_INFO_SUCCESS = 0;  //查看个人信息成功
	
	/**
	 * 获取手机验证码
	 */
	public static final int GET_CODE_SUCCESS = 0;  //成功获取验证码
	public static final int PHONE_NOT_EXIST = -1;  //手机号不存在
	
	/**
	 * 绑定手机,忘记密码
	 */
	public static final int PHONE_BIND_SUCCESS = 0;  //绑定手机成功
	public static final int CODE_VERIFY_SUCCESS = 0;  //绑定手机成功
	public static final int PHONE_ALREADY_BIND = -1;  //手机号早已被绑定
	public static final int CODE_IS_INVALIDE = -2;  //验证码失效
	public static final int CODE_IS_FALSE = -3;  //输入验证码错误
	public static final int PHONE_NOT_BIND_ACCOUNT = -1;  //手机号没有绑定账号
	
	/** 
     * 配送app信鸽密钥
     */
	public static final String ACCESSIDANDROID = "2100203333"; // Android应用名称：DELIVERY-ANDROID
	public static final String ACCESSIDIOS = "2200203917"; // IOS应用名称：D配送
	public static final String SECRETKEYANDROID = "7d7d63908ba6d792845faef9d87a33c9"; 
	public static final String SECRETKEYIOS = "d059cde1468d28eabb12befe221bc060"; 
	
	/** 
     * 配送帐号类型
     */
    public static final int DISTRIBUTION_TYPE = 4;      //配送类型
	
}
